home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // About.wfm -- About box for the Mugs application.
- //
- // This form displays system memory in a standard
- // application about box. This form opens from the
- // Mugs menu selection: Help | About Mugs.
- //
- // Dependencies: <none>
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.5 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/23/97
- //
- parameter bModal
- local f
- f = new ABOUTFORM()
- if (bModal)
- f.mdi = false // ensure not MDI
- f.readModal()
- else
- f.open()
- endif
-
- class ABOUTFORM of FORM
- with (this)
- readModal = class::FORM_READMODAL
- autoCenter = true
- scaleFontSize = 8
- scaleFontBold = false
- colorNormal = "purple"
- height = 13
- left = 22
- top = 0.5263
- width = 50
- text = "About Mugs"
- icon = "RESOURCE #2"
- endwith
-
-
- this.BUTTONCLOSE = new PUSHBUTTON(this)
- with (this.BUTTONCLOSE)
- onClick = {;form.close()}
- height = 1.2
- left = 36
- top = 11.5
- width = 12
- text = "OK"
- metric = 0
- fontName = "MS Sans Serif"
- fontSize = 8
- group = true
- colorNormal = "Yellow/Darkblue"
- value = false
- endwith
-
-
- this.RECTANGLE1 = new RECTANGLE(this)
- with (this.RECTANGLE1)
- left = 0.5714
- top = 8.5
- width = 48
- height = 0.1
- metric = 0
- text = ""
- colorNormal = "darkblue"
- fontName = "MS Sans Serif"
- endwith
-
-
- this.TEXTPHYSICAL = new TEXT(this)
- with (this.TEXTPHYSICAL)
- height = 1
- left = 2
- top = 9
- width = 34
- metric = 0
- colorNormal = "yellow/yellow"
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Physical Memory Available to Windows:"
- endwith
-
-
- this.TEXTVERSION = new TEXT(this)
- with (this.TEXTVERSION)
- height = 1
- left = 2
- top = 6
- width = 19
- metric = 0
- colorNormal = "yellow/yellow"
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Version 7.0"
- endwith
-
-
- this.TEXTCOPYRIGHT = new TEXT(this)
- with (this.TEXTCOPYRIGHT)
- height = 1
- left = 2
- top = 7
- width = 45
- metric = 0
- colorNormal = "yellow/yellow"
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Copyright (C) 1997 Borland International"
- endwith
-
-
- this.LABELFREE = new TEXT(this)
- with (this.LABELFREE)
- height = 1
- left = 2
- top = 10
- width = 34
- metric = 0
- colorNormal = "yellow/yellow"
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "Free Memory:"
- endwith
-
-
- this.TEXTFREE = new TEXT(this)
- with (this.TEXTFREE)
- height = 1
- left = 36
- top = 9
- width = 12
- metric = 0
- colorNormal = "yellow/yellow"
- alignHorizontal = 2
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "TEXTFREE"
- endwith
-
-
- this.TEXTRES = new TEXT(this)
- with (this.TEXTRES)
- height = 1
- left = 36
- top = 10
- width = 12
- metric = 0
- colorNormal = "yellow/yellow"
- alignHorizontal = 2
- fontName = "MS Sans Serif"
- fontSize = 8
- text = "TEXTRES"
- endwith
-
-
- this.IMAGE1 = new IMAGE(this)
- with (this.IMAGE1)
- height = 5
- left = 7
- top = 0.5
- width = 36
- metric = 0
- dataSource = 'FILENAME "muglogo.gif"'
- alignment = 3
- borderStyle = 5
- endwith
-
-
- // {Linked Method} form.readModal
- function Form_ReadModal
- local nFree, nRes
- nFree = TRANSFORM( MEMORY() , "999,999,999" )
- nRes = TRANSFORM( MEMORY(1), "999,999,999" )
- with ( this )
- TEXTFREE.text := LTRIM( RTRIM( nFree ) ) + " KB"
- TEXTRES.text := LTRIM( RTRIM( nRes ) ) + " KB"
- endwith
- return ABOUTFORM::ReadModal()
-
-
- endclass
-